home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 911 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: news.compuserve.com!newsmaster
  2. From: 100754.2730@compuserve.com (Martin Aupperle)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Exception and what to put into them
  5. Date: Mon, 08 Jan 1996 08:07:45 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4cqjp1$337@dub-news-svc-1.compuserve.com>
  8. References: <49i7hh$aco@news1.mclink.it> <4an868$def@newsbf02.news.aol.com> <4cg7kr$9iq@dub-news-svc-6.compuserve.com> <9600501.20425@mulga.cs.mu.OZ.AU>
  9. NNTP-Posting-Host: ad35-142.compuserve.com
  10. X-Newsreader: Forte Free Agent v0.56
  11.  
  12. fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote:
  13.  
  14. >>Using class names/function names instead is much more effort since the
  15. >>necessary strings cannot be generated automatically.
  16.  
  17. >Sure they can - at least if your compiler supports it.
  18.  
  19. Your statement is always true - you can do everything you want if your
  20. compiler supports it. 
  21.  
  22. >In GNU C++ you can use __FUNCTION__ or __PRETTY_FUNCTION__
  23. >in the same way that you can use __LINE__.
  24.  
  25. I use several DOS/Windows compilers as well as Proworks C++ V4.0.1 for
  26. Solaris and none of them supports these. So if portability is an
  27. issue, you can't rely on them. 
  28.  
  29. >There is some chance that something like this may be standardized in C9X.
  30.  
  31. What is C9X? Is it relevant for C++ programming? I looked into the DWP
  32. and did not find _FUNCTION_ etc, but I did find __LINE__ and __FILE__.
  33.  
  34. What do class/function names help you? Usually, you have to look up
  35. the problem in the source code, and for that I find line/file
  36. information more helpful. 
  37.  
  38.  
  39. -----------------------------------
  40. Signatures are a waste of bandwidth
  41. -----------------------------------
  42.  
  43.